﻿using System;
using System.IO;
using Microsoft.Xna.Framework.Media.PhoneExtensions;
using SAFPodcast.WP8.DTO.Entities;

namespace SAFPodcast.WP8.DTO.TO
{
    public class DownloadFeedItemDataItem : DownloadDataItem
    {
        private FeedItem feedItem;

        public DownloadFeedItemDataItem(FeedItem feedItem, int completion, Stream stream, bool canceled, SongMetadata song)
            : base(completion, stream, canceled, song)
        {
            this.feedItem = feedItem;
        }

        public DownloadFeedItemDataItem(FeedItem feedItem, DownloadDataItem dataItem)
            : this(feedItem, dataItem.Completion, dataItem.Stream, dataItem.Canceled, dataItem.Song)
        {
        }

        public FeedItem FeedItem
        {
            get { return feedItem; }
        }
    }
}
